
function flep_delete(type, id, td){
  flep_lightbox();
  A(E('lightbox'), 'style', A(E('lightbox'), 'style') + " width: 100px; height: 100px; margin-top: -50px; margin-left: -50px;");
  var xmlhttp = xml_http_request('id=' + id + "&type=" + type, 'delete.php');
  var msg_class = 'error';
  if(xmlhttp.status === 200){
    msg_class = 'msg';
    E('list').deleteRow(td.parentNode.rowIndex);
  }
  A(E('msg_ajax'), 'class', msg_class);
  E('msg_ajax').innerHTML = xmlhttp.responseText + '<br>';
  flep_lightbox_close();
}
